package com.devunion.salon.core.model;

import javax.persistence.*;
import java.util.List;

/**
 * @author spetrakovsky  23.02.2009
 */

@Entity
public class Taxes extends BaseSalonEntity {

    @Embedded
    @AttributeOverrides({
        @AttributeOverride(name = "firstRate", column = @Column(name = "retaileFirstRate")),
            @AttributeOverride(name = "secondRate", column = @Column(name = "retailSecondRate")),
        @AttributeOverride(name = "enable", column = @Column(name = "retailEnable"))
            })
    private Tax retail;

    @Embedded
    @AttributeOverrides({
        @AttributeOverride(name = "firstRate", column = @Column(name = "serviceFirstRate")),
            @AttributeOverride(name = "secondRate", column = @Column(name = "serviceSecondRate")),
        @AttributeOverride(name = "enable", column = @Column(name = "serviceEnable"))
            })
    private Tax services;

    public Tax getRetail() {
        return retail;
    }

    public void setRetail(Tax retail) {
        this.retail = retail;
    }

    public Tax getServices() {
        return services;
    }

    public void setServices(Tax services) {
        this.services = services;
    }
}
